﻿@model ModuleModel
using MvcTemplate.Data.Core;
using MvcTemplate.Objects;
using System;

namespace MvcTemplate.Validators
{
    public class @Model.Validator : BaseValidator, @Model.IValidator
    {
        public @(Model.Validator)(IUnitOfWork unitOfWork)
            : base(unitOfWork)
        {
        }

        public Boolean CanCreate(@Model.View view)
        {
            return ModelState.IsValid;
        }
        public Boolean CanEdit(@Model.View view)
        {
            return ModelState.IsValid;
        }
    }
}
